package com.ling.feign.plus.exception;

import com.ling.common.exception.BaseBusinessException;

/**
 * 服务间调用的业务异常
 */
public class FeignServerBusinessException extends BaseFeignServerBusinessException {

    private static final long serialVersionUID = 1L;


    public FeignServerBusinessException(String message) {
        super(message);
    }

    public FeignServerBusinessException(String message, BaseBusinessException exception) {
        super(message, exception);
    }

    @Override
    public BaseFeignServerBusinessException throwException(String message, BaseBusinessException businessException) {
        return new FeignServerBusinessException(message, businessException);
    }

}
